#include "Message.h"

Message *Msg_Create(int32_t what, int32_t arg1, int32_t arg2, void *pObj) {
  auto pMsg = new Message();
  pMsg->what = what;
  pMsg->arg1 = arg1;
  pMsg->arg2 = arg2;
  pMsg->pObj = pObj;
  return pMsg;
}

Message *Msg_Create(int32_t what, int32_t arg1) {
  return Msg_Create(what, arg1, 0, nullptr);
}

Message *Msg_Create(int32_t what, void *pObj) {
  return Msg_Create(what, 0, 0, pObj);
}

Message *Msg_Create(int32_t what) {
  return Msg_Create(what, 0, 0, nullptr);
}
